package com.mall.author.feign;

import com.mall.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: 谢君臣
 * @Date: 2022/8/6-16:18
 * @version: 1.0
 * @function:
 */
@FeignClient("openApiServer")
public interface SmsFeignClient {

    @GetMapping("/openApi/sms/code")
    Result sendCode(@RequestParam("phone")String phone, @RequestParam("code")String code);

}
